using System;
namespace Coding4Fun.Phone.Controls.Helpers
{
	public class ControlHelper
	{
		public static double CheckBound(double value, double double_0)
		{
			return ControlHelper.CheckBound(value, 0.0, double_0);
		}
		public static double CheckBound(double value, double double_0, double double_1)
		{
			if (value <= double_0)
			{
				value = double_0;
			}
			else
			{
				if (value >= double_1)
				{
					value = double_1;
				}
			}
			return value;
		}
	}
}
